<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="UTF-8">
    <title>vue-form_submit</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/css/bootstrap.min.css"
        integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
</head>

<body>
    <div id="app" class="container">
       <div>
           <form action="#">
                    <div class="form-check">
                        <input type="checkbox" value="驴肉火烧" v-model="foods">
                        <label class="form-check-label">驴肉火烧</label>
                    </div>

                    <div class="form-check">
                        <input type="checkbox" value="狗不理包子" v-model="foods">
                        <label class="form-check-label">狗不理包子</label>
                    </div>

                    <div class="form-check">
                        <input type="checkbox" value="北京烤鸭" v-model="foods">
                        <label class="form-check-label">北京烤鸭</label>
                    </div>

                    <br>

                    <button type="submit" class="btn btn-success">提交</button>

                    <hr/>
                       {{foods}} 
           </form>
       </div>
    </div>
</body>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script>
    var app = new Vue({
        el: "#app",
        data: {
            foods:[]
        },
        methods: {
        }
    })
</script>

</html>